package com.sun;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;


@EnableDiscoveryClient
@EnableFeignClients
@SpringBootApplication
@Slf4j
@MapperScan(basePackages = "com.sun.mapper")
public class OrderApplication {

    public static void main(String[] args) {
        SpringApplication.run(OrderApplication.class,args);
        log.info(">>>>>>>>>>>>>>>>>>>>>订单服务启动[success]>>>>>>>>>>>>>>>>>>>>>");
    }
}


/**
 * 当sentinel重新启动时，sentinel dashboard中原来的数据将会全部消失，这样就需要重新定义限流规则，无疑是不可取的。
 * 所以需要将sentinel中定义的限流规则保存到配置中心里面。
 */